package cn.patient.pp.module.knowledge.controller.admin.vo;

import cn.patient.pp.framework.excel.core.annotations.DictFormat;
import cn.patient.pp.module.system.enums.DictTypeConstants;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

import static cn.patient.pp.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * @author liqingsong
 * @version 1.0
 * Create by 2025/4/14
 */
@Schema(description = "管理后台 - 知识库 Response VO")
@Data
@ExcelIgnoreUnannotated
public class KnowledgeBaseRespVO {
    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "16456")
    @ExcelProperty("主键")
    private Integer id;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("名称")
    private String name;

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("编号")
    private String number;

    @Schema(description = "文本附件url", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @ExcelProperty("文本附件url")
    private String textAttachmentUrl;

    @Schema(description = "备注")
    @ExcelProperty("备注")
    private String remarks;

    @Schema(description = "发布日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("发布日期")
    private String publishDate;

    @Schema(description = "执行日期")
    @ExcelProperty("执行日期")
    private String execDate;

    @Schema(description = "废止日期")
    @ExcelProperty("废止日期")
    private String abortDate;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private String createTime;

    @Schema(description = "文件状态")
    @DictFormat(DictTypeConstants.ACTIVE_STATUS)
    private String status;

}

